package tk.hoopy.zedtown.levels;

import tk.hoopy.zedtown.graphics.GameWindow;

public class Level {
	
	private Chunk[][] chunkTable;
	private Generator lvlGenerator;
	private int levelSize;
	
	public Level(int size, Generator generator, float difficulty) {
		levelSize = size;
		lvlGenerator = generator;
		chunkTable = lvlGenerator.GenerateLevel(levelSize, difficulty);
	}
	
	public void DrawLevel(GameWindow gw) {
		for(int i=0;i<levelSize;i++) {
			for(int z=0;z<levelSize;z++) {
				gw.AddChunk(chunkTable[i][z]);
			}
		}
	}
	
	public int GetLevelSize() {
		return levelSize;
	}
	
}
